<template>
	<view class="settlementinfo">
		<view class="settlementinfo-list" >
			<view class="list-item" v-for="(item,index) in pageItems" :key="index" >
				<view class="settlement-time">{{ item.data.month }}</view>
				<view>
					<!-- <view>
						<view>￥{{ item.data.self }}</view>
						<view>自购商品红包</view>
					</view> -->
					<view>
						<view>平台奖励红包</view>
						<view>￥{{ item.data.child==0?'0':item.data.child }}</view>
						
					</view>
				</view>
				<!-- <view>
					<view>合计</view>
					<view>¥{{ item.money==0?'0':item.money}}</view>
				</view> -->
			</view>
		</view>
		<view class="no-more" v-if="pageHasNoMore">
		  --- 没有更多数据了 ---
		</view>
	</view>
</template>


<script>
	import Pagination from "mixins/Pagination"
	import { getBrokeragesList } from "api/userBrokeragesCountApi"
	export default {
		data() {
			return {
				brokeragesList:[]
			}
		},
		mixins: [
		    Pagination
		],
		methods: {
			async loadPageItems() {
			  return await getBrokeragesList({page: this.pageNumber})
			},
		},
		async onShow() {
			await this.loadPageData()
		}
	}
</script>

<style lang="scss" scoped>
	.settlementinfo{
		min-height: 100vh;
		background: #F6F6F6;
	}
	.settlementinfo-list{
		padding-top: 24rpx;
	}
	.list-item{
		width:670rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		margin: 0 auto 16rpx;
		padding:32rpx 0 28rpx 0rpx;
		>view:nth-child(2){
			display: flex;
			align-items: center;
			// justify-content: space-around;
			margin:45rpx 0 24rpx 32rpx;
			height: 40rpx;
			>view{
				display: flex;
				// align-items: center;
				// flex-direction: column;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				margin-right:50rpx;
				>view:nth-child(1){
					
					margin-bottom: 10rpx;
				}
				>view:nth-child(2){
					font-weight: 600;
					margin-left: 20rpx;
				}
			}
		}
		>view:nth-child(3){
			display: flex;
			align-items: center;
			height: 40rpx;
			margin-left: 32rpx;
			>view:nth-child(1){
				margin-right:30rpx;
			}
			>view:nth-child(2){
				font-weight: 600;
				color: #FF4924;
			}
			>view{
				display: flex;
				align-items: center;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				>view:nth-child(1){
					margin-right: 16rpx;
				}
			}
		}
	}
	.settlement-time{
		font-size: 36rpx;
		font-family: PingFangSC-Semibold, PingFang SC;
		font-weight: 600;
		color: #333333;
		padding-left:30rpx;
		margin-bottom: 20rpx;
	}
	.no-more {
	  width: 100%;
	  font-size: 24rpx;
	  text-align: center;
	  color: #cccccc;
	}
</style>
